<template>
  <div id="app">
    <Qwer></Qwer>
    <Lubo></Lubo>
    <Asdf></Asdf>
    <Btn></Btn>
  </div>
</template>

<script>
import Qwer from './components/Qwer.vue'
import Lubo from './components/Lubo.vue'
import Asdf from './components/Asdf.vue'
import Btn from './components/Btn.vue'
import {user_login,user_register} from './api/index.js'
export default {
  name: 'App',
  components: {
    Qwer,
    Lubo,
    Asdf,
    Btn
  },
    mounted(){
      console.log('组件挂载完成');
      user_login({phone:'13611129070',pass:'1234'}).then((res)=>{
        localStorage.setItem('userinfo',JSON.stringify(res.data.userinfo))
        localStorage.setItem('token',res.data.token)
        console.log(res.data);
      })
    }
  
}
</script>

<style>
*{
  padding: 0;
  margin: 0;
}
</style>
